<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let map=new Map([['name','tom'],['age',12]]);
        //法1：
        //console.log(Array.from(map));
        //法二：
        console.log([...map]);
        //法三：
        // let arr=[];
        // for(var key of map){
        //     arr.push(key);
        // }
        // console.log(arr);
    </script>
</head>
<body>
    
</body>
</html>